Skip to content

fix: use Paseo 0.15's hook names in Shell Yeah, Setup Monitor and Time Since; require Paseo 0.15 - #142

Merged
stevecastaneda merged 3 commits into
mainfrom
new-hook-names-other-plugins
Nov 25, 2026
Merged

stevecastaneda merged 3 commits into
mainfrom
new-hook-names-other-plugins

Conversation

@steve-dev-bot

Copy link
Copy Markdown
Collaborator

Why

Paseo 0.15 renamed the plugin hooks, and the old names stop working after April 30, 2027. Shell Yeah, Setup Monitor and Time Since still use the old names. When Paseo removes them, Shell Yeah would stop adding command cards and its system prompt, Setup Monitor would stop watching new worktrees, and Time Since would stop recording turn ends. Progress made the same move in #140.

What changed

  • Each plugin registers its hooks with addHook under the new names:
    • Shell Yeah: agent.create.before, agent.turn.after and agent.archive.after.
    • Setup Monitor: workspace.create.after.
    • Time Since: agent.turn.after and agent.archive.after.
  • Each plugin requires Paseo 0.15 or later. A Paseo older than that refuses the update and keeps the installed version, as CONTRIBUTING.md says.
  • The Paseo SDK dev dependencies move from 0.13.0 to 0.17.3.
  • Shell Yeah loses a comment and a test mode that existed only for Paseo 0.12 and 0.13.
  • README text that named Paseo 0.13 as the minimum now says 0.15. Each README has a changelog entry.

Versions follow CONTRIBUTING.md, where raising the minimum Paseo is a middle-number bump: Shell Yeah 1.5.0, Setup Monitor 1.2.0, Time Since 1.2.0.

Verification

  • For each plugin, typecheck, oxlint, oxfmt and check:install pass. Tests: Shell Yeah 127 pass, 0 fail, 4 skipped (terminal tests that skip themselves on this machine). Setup Monitor 31 of 31 pass. Time Since 20 of 20 pass.
  • Paseo 0.17.3 loads all three from this branch with no errors.
  • In Paseo 0.17.3's source, addHook, on and before reach the same registration, so Shell Yeah's agent.create.before hook still changes the request as before.
  • No test covers Setup Monitor's hook registration, so only typecheck and the live load cover it.
  • Security review: No release blockers found, for all three plugins.
Security review report: shell-yeah-1.5.0

Security review: @stevecastaneda/paseo-shell-yeah@1.5.0

  • Reviewer: claude --model opus
  • Commit: 5383fae
  • Tree: 9023c6d7ae19d799a578000cc2ddb8e6cab6b2ab
  • Diff: e49b7e8..5383fae -- shell-yeah/
  • Date: 2026-11-25T23:27:19.124Z
  • Minutes: 1.4
  • Key: 1067a0432adc36a6a5bb95375aa7930ed19f9ce89440badf85100ad57506b30e

I found no release blockers in Shell Yeah 1.5.0. I worked from the source only: I ran nothing, including the tests, and changed no files.

What changed

The only code change is in index.server.ts: three hook registrations (lines 72, 78, 88) move to Paseo 0.15's hook names. I checked the plugin SDK in node_modules/@getpaseo/plugin/dist/server/lifecycle.js:19-54. The old calls now just forward to the new names:

  • on("agent.turn_ended") becomes agent.turn.after
  • on("agent.archived") becomes agent.archive.after
  • before("agent.create") becomes agent.create.before

So each hook gets the same data, at the same time, as it did in 1.4.2. The handlers' bodies didn't change.

  • agent.turn.after: the 0.15 data drops timeline. 1.4.2 never read it either; it already fetched the turn with ref.timeline.refetch. The card's folder still comes from Paseo's event.agent.cwd, not from anything the agent writes.
  • agent.create.before: it returns {...request, config}, so the request's env and metadata pass through unchanged. Only the system prompt changes, as before.
  • agent.archive.after: it still calls logs.forget(agent.id), and the agent ID comes from Paseo.

The other changed files are docs, version numbers, a comment (claude.ts, limits.ts), tests, and development-only dependencies, none of which ship as code. Test files are left out of the package by !**/*.test.ts.

Places that touch files, programs, HTML or the network

  • server/proc.ts:101, :134, starting the command's shell. It starts only from the shell-yeah.start call, which the client makes when you type /sh or press Run or Rerun. The shell path comes from your SHELL (checked against a short list of known shells), or /bin/bash or /bin/sh. On Windows it's pwsh.exe from your PATH, or the system's own PowerShell. None of that comes from the repo, so it's safe.
  • server/proc.ts:218, taskkill. It runs from the daemon's own folder, not the repo, with a fixed set of arguments. Safe.
  • server/proc.ts:85, the test start that checks the terminal works. Fixed commands, run from / or the Windows system folder. Safe.
  • server/proc.ts:66, loading node-pty. It loads from Paseo's own install, or from the plugin's packages. It never loads from the repo, so it's safe.
  • server/proc.ts:188, openSync on the command's terminal device. The device path comes from node-pty, not from the repo. Safe.
  • server/shells.ts:81-116, the Run window checking whether a word is a program. It only checks whether files exist and can run (accessSync); it never runs them. On Windows it refuses network paths outside the agent's folder, so looking one up can't send your login to another computer. Safe.
  • server/system.ts:22-36, writing and deleting files. All of it happens under ~/.local/state/shell-yeah/logs, or %LOCALAPPDATA% on Windows. It refuses absolute names and .., and won't go through a link. Safe.
  • server/logs.ts:34-47, saving and cleaning up logs. Agent IDs and run IDs are turned into safe file names (anything unusual becomes a hash), and the command becomes letters, numbers and dashes. Cleanup only removes .log files and empty folders under that log folder. Safe.
  • server/runs.ts:534, stat(cwd). It only reads. Safe.
  • server/claude.ts:520, access(logPath). The path is one the plugin made itself. Safe.
  • server/claude.ts:545-551, Send. The output goes only to the agent you're looking at, and only when you press Send. It's a text attachment, so it doesn't look like something you typed, and Paseo wraps it in <bash-stdout>. Safe.
  • server/claude.ts:487-516, the attach menu. It lists only the plugin's own runs, and the link it gives is a file:// URL to the run's folder. Safe.
  • server/claude.ts:89-130, turning an agent's reply into Run cards. Nothing runs until you press Run. Text with hidden characters is refused: control characters, characters that reorder text, and line or paragraph separators. Lone carriage returns become normal line breaks. Safe.
  • client/run-row.tsx:101, the Run button. The card shows the whole command (shared/view.ts:95-116, the full command, not folded), plus warnings for risky commands. The only thing split off as a title is a first line starting with #, which the shell skips as a comment (shared/text.ts:16-19). Safe.
  • Client code generally. It has no HTML, WebView, dangerouslySetInnerHTML, opened links or network calls. It only calls the plugin's own server functions. Safe.

No release blockers found.

Security review report: setup-monitor-1.2.0

Security review: @stevecastaneda/paseo-setup-monitor@1.2.0

  • Reviewer: claude --model opus
  • Commit: 5383fae
  • Tree: 7833c50877080a8ffa72cf0425d626190cec8177
  • Diff: aa56a35..5383fae -- setup-monitor/
  • Date: 2026-11-25T23:27:05.534Z
  • Minutes: 1.1
  • Key: 31995e58064d47b2173fdcc5ad490af379befad2fc814e287aea787b8cd772da

I found no release blockers in setup-monitor 1.2.0. I worked from the source only: I didn't run the tests, npm pack, or the plugin.

What changed. Apart from formatting, the version bump and the move to Paseo 0.15, the only change in behaviour is in index.server.ts:8. The old server.on("workspace.created", …) is now server.addHook("workspace.create.after", …). Paseo's SDK maps the old name straight to the new one (lifecycle.d.ts:254). The event data is the same ({ workspace }), and Paseo doesn't wait for this hook (lifecycle.d.ts:213). The handler at server/daemon.ts:339 is now async, but it still only starts a setup watch and returns. It takes no new input and reaches nothing new. The other code changes are formatting only, plus a test helper that was renamed and moved.

Every place the plugin touches files, programs, HTML or the network:

  • Files: none. No file is read or written anywhere in client/, server/, shared/ or the index files, so nothing can be redirected through links, .. paths or .git.
  • Programs: none started directly. The only call that leads to code running is workspace.setup.run.request (server/daemon.ts:152), covered under "Run setup" below.
  • HTML / Markdown / links: none. Commands, logs, branch names, errors and blockedSource.headRepository all show as plain React Native <Text> (client/popover.tsx:109-223). Nothing renders HTML, runs scripts or opens a link.
  • Network:
    • Daemon channel (server/daemon.ts:18-34): the plugin only talks to its own Paseo daemon through process.send / process.on("message"). No sockets, HTTP or outside hosts.
    • What it sends (server/daemon.ts:119): fixed message types whose only fields are a workspace ID and a request ID. Nothing private is sent.
    • What it accepts back (server/daemon.ts:41-79, shared/setup.ts:29): every reply is checked against a schema (with zod), and logs are cut to 8,000 characters.
  • Client RPCs (client/buttons.tsx:65,174): these call the plugin's own two server handlers with a workspace ID from Paseo's workspace list.
  • Attacker text in the plugin's popover (item 4): the setup log and command names from a repo's paseo.json do show up. They sit in the log box and command rows under a "Setup…" heading, so they read as setup output, not as the user's own work. The plugin keeps nothing (no settings or history), and the "dismissed" state is in memory only.
  • "Run setup" button for a held-back setup (client/popover.tsx:144-165 → server/daemon.ts:343): this is the one judgement call, and it hasn't changed since the published 1.1.1.
    • What it does: one click runs the pull request's own setup commands. The blocked view shows Paseo's own warning, which names the source repository and says the setup "could run code you have not reviewed". It does not list the commands first.
    • Why it's not a blocker: the button does exactly what its label and warning say. It's the same approval step Paseo's own Setup panel offers. Nothing runs without the user's click.
    • Could an agent trigger it? An agent that could reach this plugin call over the daemon connection could already send workspace.setup.run.request to the daemon itself, so the plugin adds no new power.
    • If you read "shows exactly what will happen" strictly, listing the commands before the click is the change to weigh.

No release blockers found.

Security review report: time-since-1.2.0

Security review: @stevecastaneda/paseo-time-since@1.2.0

  • Reviewer: claude --model opus
  • Commit: 5383fae
  • Tree: bf43b5fcb468d494d35131bb46b946233dc9ee8c
  • Diff: aa56a35..5383fae -- time-since/
  • Date: 2026-11-25T23:26:34.266Z
  • Minutes: 0.6
  • Key: d3fc3dda4b9c3e0d1fdb871d1169dd11354941e20736167ce949779dd77010f4

I found no release blockers in @stevecastaneda/paseo-time-since 1.2.0. I reasoned everything from the source and ran nothing, including the tests.

Scope. I read every shipped source file: index.server.ts, index.client.tsx, everything in server/, client/ and shared/, plus package.json. The test files are left out of the package by !**/*.test.ts.

What changed. Apart from re-formatting, there are three real changes:

  • New hook names: server.on("agent.turn_ended"/"agent.archived") became server.addHook("agent.turn.after"/"agent.archive.after") (server/last-reply.ts:14-15). The handlers now return the store promise with .catch(report) attached, so a failed write is logged and never rejects into the daemon.
  • One file-writing helper: both storage modules now write through the new server/system.ts.
  • Version requirement: the Paseo minimum went from 0.13 to 0.15.

Places that touch files, programs, HTML or the network:

  • server/settings.storage.ts:9 (settingsRootFromEnvironment): the data root comes from PASEO_HOME or ~/.paseo. Those are the user's own environment, not the attacker's, and no repo or workspace path is used anywhere.
  • server/settings.storage.ts:19 (readFile of <root>/plugin-data/time-since/settings.json): the path is fixed. Its contents are parsed with zod into two booleans and go only back to the client.
  • server/settings.storage.ts:40 (write of settings.json through writeFileAtomicIn): the path is fixed and the content is settingsSchema.parse output, which is two booleans. The updateSettings input is also limited to optional booleans, so the toggles can't carry text into what the plugin shows.
  • server/last-reply.storage.ts:17 (readFile of <root>/plugin-data/time-since/last-reply.json): the path is fixed, and the contents are checked as a string-to-string record. A broken file starts over and is never shown as text.
  • server/last-reply.storage.ts:32 (write of last-reply.json): the path is fixed. Keys are agent ids from daemon hook payloads and values are new Date().toISOString(), so neither comes from agent-written text. A __proto__ key would only hit a setter that ignores a string, which pollutes nothing.
  • server/system.ts:23-33 (writeFileAtomicIn: mkdir, write a temp file beside the target, rename, rm on failure): the only callers pass dirname and basename of the fixed in-root path. The .. and link checks never run against anything attacker-controlled, and every write stays inside the plugin's own data folder. Nothing touches the worktree or .git.
  • server/write-lock.ts: an in-memory map keyed by the two fixed paths. It does no I/O itself.
  • server/last-reply.ts:14-15 (the new hooks): they read only agent.id and write the current time, so the agent's messages and tool output are never read or stored.
  • client/ticker.tsx:176-198 and client/settings-panel.tsx:13 (plugin RPCs to its own server for settings get/update and last-reply list): these talk only to the local plugin server, with no outside network.
  • client/ticker.tsx:119-123 (timeline subscription): it reads only event.type, item.type and timestamp. Message text is never read or shown.
  • client/directory.ts:24-101 and client/ticker.tsx:228-240 (agent directory subscription through the Paseo client): only ids, workspaceId, status and timestamps are used.
  • client/ticker.tsx:133 and :141-160 (composer pill label): the label is built by formatTimeSincePillLabel from parsed dates, so it's always a number-and-unit string or …. The title is constant.
  • client/ticker.tsx:83 (popover): it shows Date.toLocaleString() of a value that passed Date.parse, or the fixed text "None yet". These are React Native Text nodes, not HTML.
  • client/settings-panel.tsx: fixed labels plus host.label from Paseo, all as Text nodes. It has no HTML, links, web views or openURL.
  • Programs: nothing in the package runs one (no child_process, exec or spawn), and it opens nothing with the system's default app.
  • Network: nothing goes outside Paseo's own RPC and client channels, so there is no fetch, socket or outside URL.

No release blockers found.

…bump to 1.5.0

Paseo 0.15 renamed the plugin hooks and drops the old names after
2027-04-30. Shell Yeah now registers agent.create.before, agent.turn.after
and agent.archive.after through addHook, needs Paseo 0.15, and builds
against the 0.17.3 SDK. Turn-end payloads carry no history on any
supported Paseo, so the tests no longer feed one in.
…5; bump to 1.2.0

Paseo 0.15 renamed the plugin hooks and drops the old names after
2027-04-30. Setup Monitor now registers workspace.create.after through
addHook, needs Paseo 0.15, and builds against the 0.17.3 SDK.
…bump to 1.2.0

Paseo 0.15 renamed the plugin hooks and drops the old names after
2027-04-30. Time Since now registers agent.turn.after and
agent.archive.after through addHook, needs Paseo 0.15, and builds against
the 0.17.3 SDK.
@stevecastaneda
stevecastaneda merged commit 29a247d into main Nov 25, 2026
7 checks passed
@stevecastaneda
stevecastaneda deleted the new-hook-names-other-plugins branch November 25, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants